from langchain_text_splitters import RecursiveCharacterTextSplitter

def get_text_splitter():
    """金融文档专用分割器"""
    return RecursiveCharacterTextSplitter(
        chunk_size=500,      # 每段约1000字符
        chunk_overlap=100,    # 段间重叠200字符
        separators=["\n\n", "\n", "。", "！", "？", "；", "§"],
        length_function=len
    )